# -*- coding: utf-8 -*-
from .app_ import Flask


def init_ext(app: Flask):
    """
    初始化扩展
    :param app:
    :return:
    """
    # 数据库初始化
    # from ..models import db
    # db.init_app(app)

    # migrate 初始化
    # from .migrate import migrate
    # migrate.init_app(app, db)

    # 跨域初始化
    from .cors_ import cors
    cors.init_app(app)

    from .docs_ import api_docs
    api_docs.init_app(app)